
<!doctype html>
<html lang="zh-cn">

<head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.0/dist/css/bootstrap.min.css"
        integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">

    <style type="text/css" media="all">
        .cardssfd {
            margin: 5px;
            padding: 10px;
            border-radius: 10px;
            background-color: #f00;
            width: 100%;
        }
        .container{
            margin-top: 15px;
            max-width: 750px;

        }
    </style>

    <title>天翼云盘直链解析</title>
</head>

<body>
    <div class="container">
	
        <div class="row">
            <div class="card border-danger mb-2 col-md-12" style="margin: 2px;">
                <div class="card-body text-danger">
                    <h5 class="card-title">注意事项</h5>
                    <div class="card-text">
                        <div class="alert alert-danger" role="alert">
                            请不要在云盘保存隐私文件!<br>
                            <strong>请不要在网盘上保存隐私文件!!</strong><br>
                            天翼云盘<strong>未分享文件</strong>也能解析<br><br>
                            请保护好个人信息安全，天翼云盘<strong>可获取到分享者手机号码</strong><strong>请勿轻易向他人提供天意云盘分享链接</strong>
                          </div>
                    </div>
                </div>
            </div>

            <!--div class="card border-info mb-2 col-md-6 ml-auto" id="filecard" style="margin: 2px;">
                <div class="card-body text-info">
                    <h5 class="card-title">文件信息</h5>
                    <div class="card-text">
                        <table class="table table-hover">
                            <tbody>
                              <tr>
                                <th scope="row">文件名称</th>
                                <td id="filename"></td>
                              </tr>
                              <tr>
                                <th scope="row">文件大小</th>
                                <td id="filesize"></td>
                              </tr>
                              <tr>
                                <th scope="row">分享时间</th>
                                <td id="sharedate"></td>
                              </tr>
                            </tbody>
                          </table>
                          <a href="#" id="download" type="button" class="btn btn-info btn-block mt-3">下载文件</a>
                    </div>
                </div>
            </div-->

        </div>
        <div class="row">
            <div class="card border-info mb-3" style="width: 100%;margin: 2px;">
                <div class="card-header">天翼云盘直链解析</div>
                <div class="card-body text-info">
                    <h5 class="card-title">请先输入基本信息，无分享密码可不填</h5>
                     <div class="main mt-4">
            <form action="https://api.zzux.net/189/down.php" method="get" accept-charset="utf-8">
                <div class="form-row">
                    <div class="col-9">
                        <input type="url" name="url" class="form-control" placeholder="天翼云盘分享链接" required>
                    </div>
                    <div class="col-3">
                        <input type="text" name="password" class="form-control" placeholder="分享密码">
                    </div>
                </div>
                <div class="float-right" style="width: 120px;margin-top: 15px;">
                    <button type="submit" class="btn btn-info btn-block">立即下载</button>
                </div>
            </form>
         
        </div>
                </div>
            </div>
        </div>
    </div>

    <!-- Optional JavaScript -->
    <!-- jQuery first, then Popper.js, then Bootstrap JS -->
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.min.js"
        crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
        integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
        crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.0/dist/js/bootstrap.min.js"
        integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI"
        crossorigin="anonymous"></script>
        
    <!--script>
    
    $('#filecard').hide()
    
    $("#get").click(function(){
        console.log(11)
        $.ajax({
            url: 'api.php?url=' + $('#url').val() + '&password=' + $('#password').val(),
            dataType: 'json',
            success: function(res){
                let size = res.fileSize
                let level = [' B',' KB',' MB',' GB']
                let i = 0
                
                $("#filename").html(res.fileName)
                $("#sharedate").html(res.shareDate)
                
                while(size>1024){
                    size = size/1024
                    size = size.toFixed(2)
                    i++
                }
                
                $("#filesize").html(size+level[i])
                
                $("#download").attr('href',res.longDownloadUrl)
                
                $('#filecard').show()
            }
        })
    })
        
    </script-->
</body>

</html>